import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//添加
export function addInAbnormal(data){
    return request({
        url:getUrl("admin/abnormal/addInAbnormal"),
        method:"post",
        data
    })
}

//更新
export function updateInAbnormal(data) {
    return request({
        url: getUrl("admin/abnormal/updateInAbnormal"),
        method: 'post',
        data
    })
}

//软删除
export function deleteInAbnormal(data) {
    return request({
        url: getUrl("admin/abnormal/deleteInAbnormal"),
        method: 'post',
        data
    })
}

export function getInAbnormalVo(data) {
    return request({
        url: getUrl("admin/abnormal/getInAbnormalVo"),
        method: 'post',
        data
    })
}

export function getInAbnormalPage(data) {
    return request({
        url: getUrl("admin/abnormal/getInAbnormalPage"),
        method: 'post',
        data
    })
}

export function getInAbnormalList(data) {
    return request({
        url: getUrl("admin/abnormal/getInAbnormalList"),
        method: 'post',
        data
    })
}